# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-snapshottest
pkgver=0.6.0
pkgrel=3
pkgdesc="Snapshot testing for pytest, unittest, Django, and Nose"
url="https://github.com/syrusakbary/snapshottest"
arch="noarch"
license="MIT"
depends="
	py3-fastdiff
	py3-termcolor
	python3
	"
makedepends="py3-setuptools"
checkdepends="
	py3-django
	py3-nose
	py3-pytest
	py3-pytest-cov
	py3-six
	"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/s/snapshottest/snapshottest-$pkgver.tar.gz"
builddir="$srcdir/snapshottest-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest --ignore tests/test_pytest.py
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
0f39ec0b2255291d35bcc873b73b3802b427efd53b8d12ab373a76193dfe9d108534980f8081be38fadbf2392915e8e0d63547e5bf0479ea06d8d79cde4016ce  snapshottest-0.6.0.tar.gz
"
